# views/pagination.py
from rest_framework.pagination import PageNumberPagination


class StandardPagination(PageNumberPagination):
    page_size = 3  # 默认每页数量
    page_size_query_param = 'size'  # 前端控制每页数量的参数名
    max_page_size = 100  # 每页最大数量限制
